if NAME() = "HyperRef" { make sure we're closing the correct sheet! }
close now
end if
repaint on
Category:
HyperHelp
Geneva
Version 3.0
Geneva
Example
PLEASE WAIT
HyperRef
HyperScript Commands
Example
Example
please select a command from the list or choose a new category
Copy to Clipboard
Cancel@
PHyperHelp:ok = 1
HyperHelp:c = CTVALUE(5,1)
HyperHelp:x = CTVALUE(5,2)
Command
Example
Find Entry Containing
Cancel@
9HyperHelp:ok = 1
HyperHelp:searchfor = CTSTRING(4,0)
Find Next
Example
PLEASE WAIT
HyperRef
find text "
HyperScript Commands
Find Next
Example
HyperScript Commands
Find Next
About HyperHelp
Geneva
XHyperHelp
version 3.0, November 15, 1989
by: Paul T. Christensen and Keith H. Brown
HyperHelp provides an on-line reference to the HyperScript language, supplementing information contained in the Wingz version 1.1 manuals.
A scrollable list of HyperScript commands is located in the center of the HyperHelp window. Use the buttons located above this list to display a different command category. Select an entry from the list to see an example of how it might be used.
Text shown within brackets is optional. For example, "SELECT [MORE] GRAPHICS" represents the commands "SELECT GRAPHICS" and "SELECT MORE GRAPHICS". XYZ
TUnless otherwise noted, page numbers apply to the Wingz 1.1 HyperScript manual.
When the SORT option is checked, the command list is displayed alphabetically. When unchecked, commands are listed in logical groups.
Use the COPY
button to transfer the current command and/or example to the Clipboard.
The FIND
button allows the entire command database to be searched for the first item (command, page, or example) that matches a specified set of characters. XYZ
UTo locate the next item using the same search pattern, click on the FIND NEXT button.
cmdwidth
pagewidth
listwidth
lastcat
lastex
searchfor
searchat
found
Hyper
SortList
Examplel
Copyz
Search
FindIt
Help\
{ ------------------------------------------
HyperHelp
version 3.0, November 15, 1989
by: Paul T. Christensen and Keith H. Brown
------------------------------------------
HyperHelp provides a handy on-line reference to the commands in
the Wingz
HyperScript language, supplementing the information
found in the Wingz 1.1 HyperScript manual. When properly installed
and activated, this script generates a modeless dialog box that can
remain open along with your sheets and scripts. You can switch
between your open scripts and the HyperHelp reference using the
Window menu.
HyperScript commands are arranged into 20 different categories that
can be selected by using the radio buttons at the top of the dialog.
Normally, each category list is arranged into logical groupings of
commands. However, you can sort the entire category alphabetically
using the SORT check box.
By clicking on an item from the list, you can display an example of
how the selected command might be used. Because of typographical
errors, TRY THE EXAMPLE if it seems to contradict the documentation.
You can copy the command and/or example to the clipboard using the
COPY
button.
The FIND
button allows you to search for the FIRST entry (starting
from the top of the HyperRef file) that contains the search string you
specify. The appropriate category is chosen, and the entry and example
are highlighted for you. To search for the next occurence of the same
string, use the FIND NEXT button. Note that FIND
and FIND NEXT will
match text in the command, page, or example portions of each entry.
IMPORTANT
---------
Because of the critical nature of dialog control spacing and HyperHelp's
use of control sorting and naming, this script REQUIRES WINGZ VERSION 1.1.
DO NOT CHANGE THE FILENAME OF THIS SCRIPT ("HyperHelp")
OR THE NAME OF ITS REFERENCE FILE ("HyperRef")!
Suggestions for INSTALLATION:
----------------------------
Copy this file ("HyperHelp") AND its reference worksheet ("HyperRef")
into the same folder as the Wingz application.
Create a new script named "Startup" containing the following lines
and place it in the same folder as the Wingz application. Or, if
you already have a Startup file, add these lines to the end of it:
if file("HyperHelp") and file("HyperRef")
get script "HyperHelp"
select menu "Script"
add menu separator
add menuitem "HyperScript Help
" command "@call HyperHelp:Hyper()"
end if
To browse the "HyperRef" file, close ALL windows, open HyperRef (it's a Wingz
worksheet), and choose "Arrange Windows" from the Window menu. Two buttons on
the sheet will allow you to print the file and show some notes on its operation.
Functions defined by HyperHelp:
-------------------------------
Hyper()
main function which opens the reference file and builds the dialog box
SortList()
called each time the SORT check box is toggled; turns control sorting
on or off; re-selects the top list box item
List(rnge)
replaces all list box items with the entries of the category RNGE
Example(row)
displays the example text for the command on the specified ROW in the
list box
Copy()
generates a dialog box with check boxes for command and example; then
copies the currently selected command and/or example to the clipboard
based on the state of the check boxes
Search()
displays a dialog prompting the user for a search string; resets search
pointer to the beginning of the command reference; then calls FindIt()
FindIt()
routine searches the command reference from the current search pointer
using the current search string; if a match is found, the appropriate
category button is selected, the list is built, and the matching entry
is highlighted
fix(str)
takes all instances of quote marks and replaces them with double-quote
marks, allowing the returned string to be used in a HyperScript search
command; this routine was copied from the Wingz 1.1 DG file
Help()
displays a dialog with text describing HyperHelp's options
Revision History
----------------
version 3.0, November 15, 1989, Paul T. Christensen
- added SORT check box to sort the list alphabetically instead of logically
- modified List() and Example() functions to properly handle examples with SORT on
- added COPY
button and Copy() routine to transfer the current command and/or
example to the Clipboard
- added FIND
and FIND NEXT buttons, added Search() and FindIt() routines to
search the entire HyperRef file for items that match a specified search string
- added support for FIND mode to the List() routine
- modified List() to right-justify page references and display "Please Wait" message
- changed Help() window placement and rewrote the help text
- now retains settings for category, sort, and search string
- now checks the worksheet NAME() before closing it to avoid accidentally closing
a user's window instead of the HyperRef sheet
- renamed idx() to List(); exmple() to Example()
- optimized code and converted variables from global to local where possible
- updated installation instructions, documentation, and worksheet note
- renamed "HyperScript_Ref" to "HyperRef" to distinguish from previous versions
- COMPLETELY rebuilt HyperRef: added new commands from Wingz 1.1, re-organized
and renamed categories, organized items logically within each category;
corrected all known errors; added category list to the beginning of the file.
- merged Database category into Worksheet; added HyperScript category and merged
Functions and Sound entries into it; added File and Edit categories; renamed
Print to Report, Toolbox to ToolBox, changed Event, Script, Control, Dialog,
Menu, Object, Window, Chart, Field, and Worksheet to their plural names
version 2.5, September 21, 1989, Paul T. Christensen (never released publicly)
- updated control spacing and dialog repainting to work with Wingz version 1.1
- example field now displays help text if no entry is selected in the list box
version 2.4, June 22, 1989, Keith H. Brown
- added additional controls to HyperScript_Ref for printing and notes
- changed name of reference sheet from "HyperScript Ref" to "HyperScript_Ref"
to allow variable to be defined in the sheet script
- removed an extraneous range name "Foo" from HyperScript_Ref
version 2.3, June 22, 1989, Paul T. Christensen
- fixed a potentially disastrous bug where clicking on the OK button might
close a user's worksheet without saving instead of closing "HyperScript Ref"
Kudos to Steve Schroader for finding this bug-a-boo.
- corrected page setup, print area, sheet reduction, and font problems in
"HyperScript Ref"; expanded note description and reorganized some items
version 2.2, June 19, 1989, Paul T. Christensen
- added title and version number to dialog box
- changed category names: "Drawing" to "Draw", "Printing" to "Print"
- added explanatory text block (note) to "HyperScript Ref"